package pattern.proxy;

/**
 * 学习委员
 */
public class StudyMember implements IEat{
    private Monitor monitor;
    public StudyMember(Monitor monitor){
        this.monitor = monitor;
    }
    @Override
    public void eatHuoGuo() {
        monitor.eatHuoGuo();
        System.out.println("订位置");
        System.out.println("召集同学");
        System.out.println("付款");
        System.out.println("开发票");
    }

    @Override
    public void drinkCoffee() {
        monitor.drinkCoffee();
        System.out.println("订位置");
        System.out.println("召集同学");
        System.out.println("付款");
        System.out.println("开发票");
    }

    @Override
    public void sing() {

    }

    @Override
    public void washFoot() {

    }
}
